﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlChuyenDoanhSoNPP.ascx.cs" Inherits="UserControl_ControlChuyenDoanhSoNPP" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="uscMsgBox.ascx" TagName="uscMsgBox" TagPrefix="uc1" %>

<script type="text/javascript">
    function pageLoad() {
        $("#<%= imgBtnAdd.ClientID %>").click(function () {
            $.blockUI({ css: {
                border: 'none',
                padding: '15px',
                backgroundColor: '#000',
                '-webkit-border-radius': '10px',
                '-moz-border-radius': '10px',
                opacity: .5,
                color: '#fff'
            }
            });
    });
    $("#<%= ImageBtnCheck.ClientID %>").click(function () {
        $.blockUI({ css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            opacity: .5,
            color: '#fff'
        }
        });
    });
        $("#<%= imgBtnSave.ClientID %>").click(function () {

            $.blockUI({ css: {
                border: 'none',
                padding: '15px',
                backgroundColor: '#000',
                '-webkit-border-radius': '10px',
                '-moz-border-radius': '10px',
                opacity: .5,
                color: '#fff'
            }
            });

        });
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }
    }
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Chuyển doanh số NPP
                </div>
                 <hr />
                <!-- Button chuc nang-->
                <div class="direct_container_main">
                    <asp:ImageButton ID="imgBtnAdd" onclick="imgBtnAdd_Click" CausesValidation="false" ImageUrl="~/Images/add.png" Width="32px" Height="32px" runat="server" />
                     <asp:ImageButton ID="ImageBtnCheck" onclick="ImageBtnCheck_Click" ImageUrl="~/Images/tranfers_bt.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="imgBtnSave" onclick="imgBtnSave_Click" ImageUrl="~/Images/save.png" Width="32px" Height="32px" runat="server" />
                    
                </div>
                <!-- End Button chuc nang-->
                <!-- Content main-->
                <div class="direct_container_main">
                    <div class="direct_container_form_right">
                        <table border="0" width="100%">
                            <tr>
                                <td align="right" width="10%"><p class="direct_label">Chi nhánh</p></td>
                                <td align="left" width="90%">
                                   <asp:DropDownList ID="ddlChiNhanh" runat="server">
                                        </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="right"><p class="direct_label">Ngày HĐ</p></td>
                                <td align="left">
                                     <asp:TextBox ID="txtOrderDate" CssClass="input_code" runat="server"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td align="right"><p class="direct_label">Mã NPP</p></td>
                                <td align="left">
                                    <asp:TextBox ID="txtMaNPP" CssClass="input_code" runat="server" AutoPostBack="true" 
                                         ontextchanged="txtMaNPP_TextChanged"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox ReadOnly="true" ID="txtNameNPP"  CssClass="input_full" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right"><p class="direct_label">Số HĐ</p></td>
                                <td align="left">
                                    <asp:TextBox ID="txtSoHD" CssClass="input_code" runat="server"></asp:TextBox>&nbsp;&nbsp;<span class="direct_label">Tiền HĐ&nbsp;&nbsp;</span><asp:TextBox ID="txtTienHD"  ReadOnly="true" CssClass="input_full" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2"><p class="direct_legend">Chuyển cho NPP</p></td>
                            </tr>
                            <tr>
                                <td align="right"><p class="direct_label">Mã NPP</p></td>
                                <td align="left">
                                   <asp:TextBox ID="txtMaNPPMoi" CssClass="input_code" runat="server" AutoPostBack="true" 
                                         ontextchanged="txtMaNPPMoi_TextChanged"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox ID="txtNameNPPMoi" ReadOnly="true" CssClass="input_full" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                           
                        </table>
                    </div>
                </div>
                <!-- EndContent main-->
    </ContentTemplate>
</asp:UpdatePanel>
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />